package com.zjc.yohoshop.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * 商品详情实体类
 */
public class GoodsValuesEntity extends BaseEntity {
    public List<ValuesBean> values;
    public List<RecommendGoodsBean> recommend_goods;

    public static class ValuesBean{
        /**
         * goods_id : 1
         * category_id : 1
         * brand_id : 1
         * shop_id : 1
         * goods_name : 漂亮的衣服1
         * goods_original_price : 120
         * goods_discount_price : 100
         * discount_detail : 8
         * goods_guarantee : 7天无理由退货
         * goods_popularity : 100
         * follow : 99
         * time : 1552221466
         * imgs : [{"goods_img_path":"/goods_img/goods_img1.jpg"},{"goods_img_path":"/goods_img/goods_img2.jpg"},{"goods_img_path":"/goods_img/goods_img3jpg"},{"goods_img_path":"/goods_img/goods_img4.jpg"},{"goods_img_path":"/goods_img/goods_img5.jpg"},{"goods_img_path":"/goods_img/goods1.jpg"},{"goods_img_path":"/goods_img/goods2.jpg"},{"goods_img_path":"/goods_img/goods3jpg"},{"goods_img_path":"/goods_img/goods4.jpg"},{"goods_img_path":"/goods_img/goods5.jpg"}]
         */

        public String goods_id;
        public String category_id;
        public String brand_id;
        public String shop_id;
        public String goods_name;
        public String goods_original_price;
        public String goods_discount_price;
        public String discount_detail;
        public String goods_guarantee;
        public String goods_popularity;
        public String follow;
        public String time;
        public List<ImgsBean> imgs;


        public static class ImgsBean implements MultiItemEntity{
            /**
             * goods_img_path : /goods_img/goods_img1.jpg
             */
            public String goods_img_path;
            public int itemType = 0;

            @Override
            public int getItemType() {
                return itemType;
            }
        }
    }

    public static class RecommendGoodsBean {
        /**
         * goods_id : 1
         * category_id : 1
         * brand_id : 1
         * shop_id : 1
         * goods_name : 漂亮的衣服1
         * goods_original_price : 120
         * goods_discount_price : 100
         * discount_detail : 8
         * goods_guarantee : 7天无理由退货
         * goods_popularity : 100
         * follow : 99
         * time : 1552221466
         * goods_img_id : 1
         * goods_img_path : /goods_img/goods_img1.jpg
         * detail_flag : 1
         */

        public String goods_id;
        public String category_id;
        public String brand_id;
        public String shop_id;
        public String goods_name;
        public String goods_original_price;
        public String goods_discount_price;
        public String discount_detail;
        public String goods_guarantee;
        public String goods_popularity;
        public String follow;
        public String time;
        public String goods_img_id;
        public String goods_img_path;
        public String detail_flag;

    }
}
